package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"username"`
	Password string `gorm:"type:varchar(255)" json:"password"`
}
type Video struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)" json:"title"`
	Content string `gorm:"type:varchar(50)" json:"content"`
	Img     string `gorm:"type:varchar(255)" json:"img"`
}
type Like struct {
	gorm.Model
	Uid int `gorm:"type:int" json:"uid"`
	Vid int `gorm:"type:int" json:"vid"`
}
